import request from '#/utils/requestAbort';

export const provinceDaTangLargeScreen = (data = {}) => {
  return request('/gansudatang/largeScreen/provinceDaTangLargeScreen', {
    method: 'POST',
    data: data,
  });
};

export const provinceLargeScreen = (data = {}) => {
  return request('/disclosure/largeScreen/provinceLargeScreen', {
    method: 'POST',
    data: data,
  });
};

// 电价分布图
export const getElectricPriceDistributionChart = (date) => {
  return request('/disclosure/marketTradingDaily/getElectricPriceDistributionChart', {
    method: 'GET',
    params: {
      date,
    },
  });
};

// 全省供需
export const getMarketTradingDaily = (date) => {
  return request('/disclosure/marketTradingDaily/chart', {
    method: 'GET',
    params: {
      date,
    },
  });
};

// 日前电价趋势
export const fetchDayaheadElectricPriceTrend = (date) => {
  return request('/gansudatang/marketTradingDaily/fetchDayaheadElectricPriceTrend', {
    method: 'GET',
    params: {
      date,
    },
  });
};

// 实时电价
export const fetchRealtimeElectricPriceTrend = (date) => {
  return request('/gansudatang/marketTradingDaily/fetchRealtimeElectricPriceTrend', {
    method: 'GET',
    params: {
      date,
    },
  });
};
